package com.shiftychess.factory{
	import com.shiftychess.view.components.ChessPieceDesktopIcon;
	import com.shiftychess.view.components.WindowsXPFolderIcon;
	import com.shiftychess.view.components.WindowsXPTextFileIcon;
	
	
	public class ChessPieceDesktopIconFactory{
		
		public function ChessPieceDesktopIconFactory(){
			
		}
		
		
		//take into consideration Operating System etc.
		public static function getIcon(obj:Object):ChessPieceDesktopIcon{
			switch(obj.color){
				case "white":
					return new WindowsXPFolderIcon();
					break;
				case "black":
					return new WindowsXPTextFileIcon();
					break;
			}
			return null;
		}

	}
}